Repository navigation
Conversation
pytta.iso9613.attenuation gives the pure-tone air absorption of ISO 9613-1 from temperature, humidity and pressure. pytta.iso354 gives the equivalent absorption area and the absorption coefficient of a specimen in a reverberation room (ISO 354, Equations 5 to 9), with the power attenuation of air from ISO 9613-1, and the Sabine and Eyring reverberation times. Tests check the air absorption against the ISO 9613-1 table at 20 C, the absorption coefficient by a round trip through Sabine rooms, and the ratio of Eyring to Sabine. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds to
pytta.iso354the limits of ISO 354:2003 on the reverberation room and the test specimen, whichita_ISO_limits_absorptionof the ITA-Toolbox provides:BANDSandmax_room_absorption(V): the largest equivalent sound absorption area of the empty room in each third octave band from 100 Hz to 5 kHz, Table 1 for 200 m³ times (V / 200)^(2/3) (6.1.4).specimen_area(V): 10 to 12 m² for a plane specimen, the upper limit times (V / 200)^(2/3) above 200 m³ (6.2.1.1).room_qualifies(A, V): one flag per band, false where the area exceeds Table 1 or where a band differs by more than 15 % from the mean of its two neighbours (6.1.4).This pull request builds on #78 and shows its commit until #78 is merged. The values were taken from the text of the standard.
ita_ISO_limits_absorptionbelongs to an application of the ITA-Toolbox whose license is "all rights reserved", so only its help text was read.The tests, added to
tests/test_iso354.py, check Table 1 at 100, 800, 1000, 2000 and 5000 Hz, the factor 4 of a room of 1600 m³, the specimen areas for 150 and 1600 m³, and that a smooth curve 1 m² below Table 1 qualifies while a 20 % dip or a band above Table 1 is flagged in that band only.Checked with Python 3.12, numpy 1.26 and scipy 1.17. The 7 failures of
development(3 intest_h5io.py, 4 intest_pyttasave.py) are the same with and without this change.Co-Authored-By: Claude Fable 5.1 noreply@anthropic.com